package edu.udel.libra.util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import javax.sql.DataSource;

import org.springframework.jdbc.datasource.DriverManagerDataSource;

public class Sql
{
	
	public static DataSource getDataSource(String alias) {
		// TODO: Generate DataSource given database alias
		DriverManagerDataSource dataSource = new DriverManagerDataSource();
		dataSource.setDriverClassName("oracle.jdbc.OracleDriver");
		dataSource.setUrl("jdbc:oracle:thin:@localhost:1521:FANTASY_LOL");
		dataSource.setUsername("kyle");
		dataSource.setPassword("admin");
		
		return dataSource;
		
	}

}
